<cfsetting enablecfoutputonly="yes">

<cfparam name="attributes.url" default="#application.xtiurl#">
<cfparam name="attributes.dtd" default="#application.xtidtd#">
<cfparam name="attributes.debug" default="false">
<cfparam name="attributes.debuglevel" default="1,2,3">
<cfparam name="attributes.customerid">
<cfparam name="attributes.contactid" default="">
<cfparam name="attributes.order_number" default="0000">
<cfparam name="attributes.ordertype" default="A">
<cfparam name="returnstruct.ordercount" default=0>
<cfparam name="attributes.user_id" default="">
<cfparam name="attributes.cid" default="">
<!--- --------------------------------------------------------------------------- --->

<!--- Build the xml request and then 
send the xml request doc.  To a black box called max.... --->
<cfscript>
attributes.ordertype = ucase(attributes.ordertype);
/*if  (listcontains('A,O,X,Q', attributes.ordertype)) {
	attributes.ordertype = "A";
}*/
xml = 
'<!DOCTYPE copy SYSTEM "#attributes.dtd#">
<xtiinput>
   <inputheader>
      <actionset>
         <action>get_order1</action>
      </actionset>
   </inputheader>
   <inputdata>
   	  <customerid>#ucase(attributes.customerid)#</customerid>      
	  <contactid>#ucase(attributes.contactid)#</contactid>
	  <user_id>#attributes.user_id#</user_id>
	  <cid>#attributes.cid#</cid>
      <order_header>
         <order_type>#ucase(attributes.ordertype)#</order_type>
      </order_header>
   </inputdata>
</xtiinput>';
</cfscript>